#!/bin/bash
set -euo pipefail
BaseDir=$(cd "$(dirname "$0")"; pwd)
cd ${BaseDir}

source ./env.gitlab
echo "PRJ: $GIT_HOST:$GITLAB_ROOTGROUP/$GITLAB_SUBGROUP/$GITLAB_PROJECT"

#保护接触掉
# http://localhost:800/qa/tca/demo/-/settings/repository#js-protected-branches-settings
pushd ./prjs/$GITLAB_PROJECT
	git add .
	git commit -m "tca push" || true
	git push --set-upstream origin master -f
popd
